<?php 
class __LOADFUNCTION {
	private static $_instance;
	public $listGroupFunction = array();
	public $server;

	public static function getInstance() {
		if(!self::$_instance) self::$_instance = new self();

		return self::$_instance;
	}

	public function load($functionGroup) {
		if (empty($functionGroup)) return false;
		if (!file_exists (ROOT . '/'. CORE_APP_DIR '/functions/' . $functionGroup . '.php')) {
			return false;
		}

		return require_once(ROOT . '/'. CORE_APP_DIR '/functions/' . $functionGroup . '.php');
	}
}